package com.serkol.ams.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;

/**
 * 
 * @TableName order_master
 */
@TableName(value ="order_master")
@Data
public class OrderMaster implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private Long userId;

    /**
     * 
     */
    private Long operatorId;

    /**
     * 
     */
    private Long addressId;

    /**
     * 
     */
    private String sn;

    /**
     * 
     */
    private String partySn;

    /**
     * 
     */
    private String partyId;

    /**
     * 
     */
    private Long categoryId;

    /**
     * 
     */
    private Integer paymentMethod;

    /**
     * 
     */
    private Integer paymentStatus;

    /**
     * 
     */
    private Date paymentDate;

    /**
     * 
     */
    private BigDecimal paymentAmount;

    /**
     * 
     */
    private BigDecimal discountAmount;

    /**
     * 
     */
    private BigDecimal totalAmount;

    /**
     * 0:成功/已支付
     */
    private Integer status;

    /**
     * 1:成功/已支付
     */
    private Integer isPay;

    /**
     * 1:云库存/发货
     */
    private Integer cloudType;

    /**
     * 
     */
    private Integer deleted;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

    /**
     * 
     */
    private Long brandId;

    /**
     * 
     */
    private Integer quantity;

    /**
     * 
     */
    private Long agentId;

    /**
     * 
     */
    private Integer isAgent;

    /**
     * 
     */
    private Integer isUpgrade;

    /**
     * 
     */
    private String postNum;

    /**
     * 
     */
    private Integer isActivty;

    /**
     * 
     */
    private Integer isShop;

    /**
     * 
     */
    private Long shopId;

    /**
     * 支付状态:0-微信支付,1-本地支付
     */
    private Integer payType;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}